<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Controller for services API.
 * @package backend-services/conrollers
 * @category Controller
 * 
 * @author Mark Angelo Angulo
 * @copyright (c) 2015
 */
class Service_api extends REST_Controller {
    
    /**
     * Constructor method. 
     */
    public function __construct()
    {
        parent::__construct();
        
//        $this->load->helper('param');
        $this->load->library('form_validation');
    }
    
    /**
     * Retrieves description via GET method.
     * @access public
     */
    public function description_get()
    {
        retrieve('Description');
    }
    
    /**
     * Retrieves description via POST method.
     * @access public
     */
    public function description_post()
    {
        retrieve('Description');
    }
    
    /**
     * Retrieves email via GET method.
     * @access public
     */
    public function email_get()
    {
        retrieve('Email');
    }
    
    /**
     * Retrieves email via POST method.
     * @access public
     */
    public function email_post()
    {
        retrieve('Email');
    }
    
    /**
     * Retrieves website via GET method.
     * @access public
     */
    public function website_get()
    {
        retrieve('Website');
    }
    
    /**
     * Retrieves website via POST method.
     * @access public
     */
    public function website_post()
    {
        retrieve('Website');
    }
    
    /**
     * Retrieves phone number via GET method.
     * @access public
     */
    public function phone_get()
    {
        retrieve('Phone');
    }
    
    /**
     * Retrieves phone number via POST method.
     * @access public
     */
    public function phone_post()
    {
        retrieve('Phone');
    }
    
    /**
     * Retrieves fax via GET method.
     * @access public
     */
    public function fax_get()
    {
        retrieve('Fax');
    }
    
    /**
     * Retrieves fax via POST method.
     * @access public
     */
    public function fax_post()
    {
        retrieve('Fax');
    }
    
    
    /**
     * Retrieves mobile via GET method.
     * @access public
     */
    public function mobile_get()
    {
        retrieve('Mobile');
    }
    
    /**
     * Retrieves mobile via POST method.
     * @access public
     */
    public function mobile_post()
    {
        retrieve('Mobile');
    }
    
    /**
     * Retrieve all VIP services information via GET method.
     * @access public
     */
    public function all_get()
    {
        response_info();
    }
    
    /**
     * Retrieve all VIP services information via GET method.
     * @access public
     */
    public function all_post()
    {
        response_info();
    }
}
/* End of file about.php */
/* Location: ./application/modules/backend-services/controllers/service_api.php */